function save_info() {
	//var  = $("").val()
	var id = $("#uid").html();
	var gender = $("#gender").html();
	var age = $(".age").val();
	var phone = $(".yd_phone").val();
	var email = $(".email").val();
	var qq = $(".qq").val();
	var params = {"id":id,
			"gender":gender,
			"age":age,
			"phone":phone,
			"email":email,
			"qq":qq,};
	console.log(params);
	$.post("person/updateInfo",params,function(result){
		if(result.state == 1){
			updatePage();
		}else{
			layer.alert(result.message,{
	              title: '提示框',				
					icon:2,
				 });
		}
		
	});
}
function updatePwd(){
	var id = $("#uid").html();
	var old_pwd = $("#password").val();
	var new_pwd = $("#Nes_pas").val();
	console.log(id+","+old_pwd+","+old_pwd);
	var params = {"id":id,"oldPwd":old_pwd,"newPwd":new_pwd};
	$.post("person/updatePwd",params,function(result){
		if(result.state == 1){
			layer.alert('修改成功！', {
				title : '提示框',
				icon : 1,
			});
			location.href="login.html";
		}else if(result.state == 2){
			layer.alert(result.message, {
				title : '提示框',
				icon : 2,
			});
		}else{
			layer.alert('修改失败！', {
				title : '提示框',
				icon : 2,
			});
		}
		
	});
	
}
